The layout of property pages and wizard pages is divided into sections called panels. Every property page or wizard page must have at least one panel. Additional panels can be created to group related properties together with an optional caption and separator line. Creating a panel defines a group of properties and other elements to appear on a property page or wizard page.
Panel elements are the individual items that can appear in a panel on a property page. The layout of panel elements within a panel can be defined in one of two styles:
Panels of each type can be defined for the same property page. Convenient controls are also provided for configuring fixed field widths and visibility or read-only VBScript expressions for multiple panel elements in one operation.
To create or edit a panel:
Option | Description |
---|---|
Display name (caption) |
Type the name of the panel as you want it to appear as the panel’s caption if the Show caption option is enabled. |
Name |
A default internal name is calculated. Accept the default in most cases. |
Size |
Type the number of columns in which you want the panel’s items to appear in the page layout. |
Show caption |
Select this option to display the panel’s Display Name value as a caption at the top-left corner of the panel. A horizontal separator line will separate the caption from the other panel elements. |
Display line separator under panel |
Select this option to display a horizontal separator line below the panel. This can be useful if the page has multiple panels. |
Click the Fields tab. The names of the current elements of the panel are shown in a grid of rows and columns that represent the general layout of the panel.
Note The tab is named Fields because, in this context a panel element can be a property, a command button, or static text, which are also known as fields on a form and a property page can also be thought of as a form.
If you selected Static, type the number of columns to arrange the elements into in Size. If you selected Dynamic, select the property from Property that you want to use to control the visibility of some or all of the panel’s elements. This property is referred to as the controlling property in the remainder of this procedure.
Note Using dynamic panels only makes sense when you know which panel elements should appear for every possible value of the controlling property. To know every possible value in advance implies that the property should use either a lookup list to present those possible values or use values that are defined for the property in the Field-Path definition. Otherwise, the panel elements that would be visible and their behavior would be unpredictable. For this reason, you should only use a property that is associated with a lookup list or has its possible values specified in the Field-Path definition as the controlling property.